﻿using System;
using System.Linq;
using System.Windows;

using Tasx.Definitions;
using Tasx.ViewModels;

namespace Tasx
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			InitializeComponent();
		}

		protected override void OnInitialized(EventArgs e)
		{
			base.OnInitialized(e);
			
			var provider = TaskProviders.Providers.FindByName("Google");
			if(provider != null)
			{
				this.DataContext = new MainViewModel(provider);
			}
		}
	}
}
